package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by lvsidong on 2017/10/23.
 *
 * 车辆详情
 */

public class CarDetailEntity implements Parcelable{
    public String brand;
    public int carId;
    public String carNum;
    public int chargeStatus;
    public String chargeStatusDesc;
    public String distanceDesc;
    public Double latitude;
    public Double longitude;
    public int onlineStatus;
    public String onlineStatusDesc;
    public int power;
    public String powerDesc;
    public int remainMileage;
    public String remainMileageDesc;
    public int status;

    public String statusDesc;

    public CarLastDetailEntity lastDeal;

    public String getStatusDesc() {
        return statusDesc;
    }

    public void setStatusDesc(String statusDesc) {
        this.statusDesc = statusDesc;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public int getChargeStatus() {
        return chargeStatus;
    }

    public void setChargeStatus(int chargeStatus) {
        this.chargeStatus = chargeStatus;
    }

    public String getChargeStatusDesc() {
        return chargeStatusDesc;
    }

    public void setChargeStatusDesc(String chargeStatusDesc) {
        this.chargeStatusDesc = chargeStatusDesc;
    }

    public String getDistanceDesc() {
        return distanceDesc;
    }

    public void setDistanceDesc(String distanceDesc) {
        this.distanceDesc = distanceDesc;
    }

    public Double getLatitude() {
        return latitude;
    }

    public void setLatitude(Double latitude) {
        this.latitude = latitude;
    }

    public Double getLongitude() {
        return longitude;
    }

    public void setLongitude(Double longitude) {
        this.longitude = longitude;
    }

    public int getOnlineStatus() {
        return onlineStatus;
    }

    public void setOnlineStatus(int onlineStatus) {
        this.onlineStatus = onlineStatus;
    }

    public String getOnlineStatusDesc() {
        return onlineStatusDesc;
    }

    public void setOnlineStatusDesc(String onlineStatusDesc) {
        this.onlineStatusDesc = onlineStatusDesc;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power;
    }

    public String getPowerDesc() {
        return powerDesc;
    }

    public void setPowerDesc(String powerDesc) {
        this.powerDesc = powerDesc;
    }

    public int getRemainMileage() {
        return remainMileage;
    }

    public void setRemainMileage(int remainMileage) {
        this.remainMileage = remainMileage;
    }

    public String getRemainMileageDesc() {
        return remainMileageDesc;
    }

    public void setRemainMileageDesc(String remainMileageDesc) {
        this.remainMileageDesc = remainMileageDesc;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public CarLastDetailEntity getLastDeal() {
        return lastDeal;
    }

    public void setLastDeal(CarLastDetailEntity lastDeal) {
        this.lastDeal = lastDeal;
    }

    public static Creator<CarDetailEntity> getCREATOR() {
        return CREATOR;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.brand);
        dest.writeInt(this.carId);
        dest.writeString(this.carNum);
        dest.writeInt(this.chargeStatus);
        dest.writeString(this.chargeStatusDesc);
        dest.writeString(this.distanceDesc);
        dest.writeValue(this.latitude);
        dest.writeValue(this.longitude);
        dest.writeInt(this.onlineStatus);
        dest.writeString(this.onlineStatusDesc);
        dest.writeInt(this.power);
        dest.writeString(this.powerDesc);
        dest.writeInt(this.remainMileage);
        dest.writeString(this.remainMileageDesc);
        dest.writeInt(this.status);
        dest.writeString(this.statusDesc);
        dest.writeParcelable(this.lastDeal, flags);
    }

    public CarDetailEntity() {
    }

    protected CarDetailEntity(Parcel in) {
        this.brand = in.readString();
        this.carId = in.readInt();
        this.carNum = in.readString();
        this.chargeStatus = in.readInt();
        this.chargeStatusDesc = in.readString();
        this.distanceDesc = in.readString();
        this.latitude = (Double) in.readValue(Double.class.getClassLoader());
        this.longitude = (Double) in.readValue(Double.class.getClassLoader());
        this.onlineStatus = in.readInt();
        this.onlineStatusDesc = in.readString();
        this.power = in.readInt();
        this.powerDesc = in.readString();
        this.remainMileage = in.readInt();
        this.remainMileageDesc = in.readString();
        this.status = in.readInt();
        this.statusDesc = in.readString();
        this.lastDeal = in.readParcelable(CarLastDetailEntity.class.getClassLoader());
    }

    public static final Creator<CarDetailEntity> CREATOR = new Creator<CarDetailEntity>() {
        @Override
        public CarDetailEntity createFromParcel(Parcel source) {
            return new CarDetailEntity(source);
        }

        @Override
        public CarDetailEntity[] newArray(int size) {
            return new CarDetailEntity[size];
        }
    };
}
